home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / ophel001.swf / scripts / DefineButton2_981 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-08-12  |  1.8 KB  |  63 lines

  1. on(release){
  2.    if(eval("/Variables:PuzzleFontaineOK") == true)
  3.    {
  4.       loadVariablesNum("/arcane/tracking/tracking.html?episode=7&stage=9",0);
  5.       if(eval("/Variables:PositionPerso") eq "Auto")
  6.       {
  7.          set("/Variables:VaVers02","PontDebut2");
  8.          set("/Variables:PositionPerso","PontDebut2");
  9.          if(eval("/Variables:PersoPres") == 1)
  10.          {
  11.             set("/Variables:VaVers01","Sc12");
  12.             tellTarget(Gregor)
  13.             {
  14.                gotoAndStop("MarcheGauche");
  15.                play();
  16.             }
  17.          }
  18.          if(eval("/Variables:PersoPres") == 2)
  19.          {
  20.             set("/Variables:VaVers01","Sc05");
  21.             tellTarget(Gregor)
  22.             {
  23.                gotoAndStop("MarcheGauche");
  24.                play();
  25.             }
  26.             tellTarget(Prescott)
  27.             {
  28.                gotoAndStop("MarcheGauche");
  29.                play();
  30.             }
  31.          }
  32.       }
  33.       if(eval("/Variables:PositionPerso") eq "Fontaine")
  34.       {
  35.          set("/Variables:VaVers02","PontDebut2");
  36.          set("/Variables:PositionPerso","PontDebut2");
  37.          if(eval("/Variables:PersoPres") == 1)
  38.          {
  39.             set("/Variables:VaVers01","Sc12");
  40.             tellTarget(Gregor)
  41.             {
  42.                gotoAndStop("MarcheGauche");
  43.                play();
  44.             }
  45.          }
  46.          if(eval("/Variables:PersoPres") == 2)
  47.          {
  48.             set("/Variables:VaVers01","Sc05");
  49.             tellTarget(Gregor)
  50.             {
  51.                gotoAndStop("MarcheGauche");
  52.                play();
  53.             }
  54.             tellTarget(Prescott)
  55.             {
  56.                gotoAndStop("MarcheGauche");
  57.                play();
  58.             }
  59.          }
  60.       }
  61.    }
  62. }
  63.